package net.uhuijia.goods.goodskuproperty.service;

import net.uhuijia.vo.good.GoodSkuVo;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import net.uhuijia.appbase.service.BaseService;
import net.uhuijia.goods.goodskuproperty.persistence.model.GoodSkuProperty;
import net.uhuijia.goods.goodskuproperty.persistence.model.GoodSkuPropertyExample;

import java.util.List;


@Service
@Transactional
public interface GoodSkuPropertyService
     extends BaseService<GoodSkuProperty,GoodSkuPropertyExample> {
	
	/**
	 * 
	 * @author 王文鑫  
	 * @date 2018年9月30日  
	 * @param goodSkuId
	 * @param proNameId
	 * @param proValueId
	 * @param goodId
	 * @return
	 */
	GoodSkuProperty addGoodSkuProperty(String goodSkuId,String proNameId,String proValueId,String goodId);

	/**
	 * 根据商品spuId 查询商品属性名称
	 * @author 许忠健
	 * @param spuId 商品spuId
	 * @return
	 */
	List<GoodSkuProperty> findGoodSkuPropertyNameBySpuId(String spuId);

	/**
	 * 根据商品Id 和属性名称ID 查询商品属性值
	 * @param spuId 商品SpuId
	 * @param propertyNameId 商品属性名称Id
	 * @return
	 */
	List<GoodSkuProperty> findGoodSkuPropertyValueBySpuIdAndProNameId(String spuId,String propertyNameId);

	/**
	 * @Author xzj
	 * @Description //根据商品获取商品sku属性集合
	 * @Date  2018/10/6
	 * @Param
	 * @return
	 **/
	List<GoodSkuVo> getGoodSkuVoBySpuId(String spuId);
}